﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RCSP.Common.Configurations
{
    [Serializable]
    public class XmlEntityMappingConfiguration
    {
        /// <summary>
        /// Type of entity
        /// </summary>
        [System.Xml.Serialization.XmlAttribute]
        public string EntityType { get; set; }

        /// <summary>
        /// List name, urn encoded
        /// </summary>
        [System.Xml.Serialization.XmlAttribute]
        public string TableName { get; set; }

        /// <summary>
        /// Site url
        /// </summary>
        [System.Xml.Serialization.XmlAttribute]
        public string ConnectionString { get; set; }

        /// <summary>
        /// Web name
        /// </summary>
        [System.Xml.Serialization.XmlAttribute]
        public string WebName { get; set; }

        /// <summary>
        /// Property mapings for the list
        /// </summary>
        [System.Xml.Serialization.XmlElement("PropertyMapping")]
        public List<XmlPropertyMappingConfiguration> PropertyMappings { get; set; }
    }
}
